﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Common;

namespace AdminUI.Controllers
{
    public class BasicInformationController : BaseController
    {
        // GET: BasicInformation
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult Find(int? id)
        {
            if (!id.HasValue)
            {
                return View("error");
            }
            var data = HttpHelper.HttpGet<Result<BasicInform_and_BasicInformCus>>(Tools.ApiPath+ "api/BasicInformation/BasicInformAndCustomer/" + id, "get");
            if (data.Code==200)
            {
                return View(data.Data);
            }
            return View("error");
        }
    }
}